const path = require('path')

const filePath = '/a/b/c/index.asp'
const fullname = path.extname(filePath)
console.log(fullname);  //asp

